package net.csdn.business.common.domain.request.project;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName NewRepoTipsSetDTO
 * @Description 新增仓库打赏记录DTO
 * @Author zhangyl
 * @Date 2024/3/12 11:22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public class NewRepoTipsSetDTO implements Serializable {
   /* @NotBlank(message = "orgId不能为空")
    private String orgId;
    @NotBlank(message = "repoId不能为空")
    private String repoId;*/
    @NotBlank(message = "repoPath不能为空")
    private String repoPath;
    @NotBlank(message = "tipContact不能为空")
    @Length(min = 0, max = 500, message = "tipContact长度范围：0-500")
    private String tipContact;
    @Length(min = 0, max = 500, message = "tipDesc长度范围：0-500")
    private String tipDesc;
    @NotNull(message = "isEnable不能为空")
    private Boolean isEnable=false;
    //@NotBlank(message = "currUserId不能为空")
    private String currUserId;
}
